<?php $this->headScript()
->captureStart()?>

$(document).ready(function(){
	$("#button").click(function(){
		$("#myform").submit();
	});
});
<?php $this->headScript()->captureEnd()?>
<h1>程式碼產生器</h1>
<form name="myform" id="myform" action="<?php echo  $this->route('genclass')?>" method="post">
<dl>
<dt>模組名稱</dt>
<dd><input type="text" name="selModule" size="10" /></dd>
</dl>
<dl>
<dt>資料表名稱</dt>
<dd>
<select name="selTable" id="selTable">
<?php foreach($this->tables as $val):?>
<option value="<?php echo  $val?>"><?php echo  $val?></option>
<?php endforeach?>
</select>
</dd>
</dl>
<dl>
<dd><input type="button" id="button" value="確定" /></dd>
</dl>
</form>